Ext.define('AM.view.user.List' ,{
    extend: 'Ext.grid.Panel',
    alias: 'widget.userList',
    store: 'Users',
    initComponent: function() {
        this.columns = [
            {header: 'id',  dataIndex: 'id',  flex: 1},
            {header: 'username', dataIndex: 'username', flex: 1}
        ];
        /*
        this.dockedItems = [{
            dock: 'top',
            xtype: 'toolbar',
            items: [{
                width: 400,
                labelWidth: 50,
                xtype: 'searchfield',
                store: 'Users'
            },{
            	xtype:'button',
            	id:'newUserBtn',
            	action:'resetUserForm',
            	text:'New User',
            	iconCls: 'add',
                iconAlign: 'left'
            }]
        }];
        */
        this.callParent(arguments);
    }
});